package com.cxria.pattern.intermediary

def mediator = new Mediator()

println '----采购人员采购电脑----'
def purchase = new Purchase(mediator)
purchase.buyIBMcomputer(100)

println '----销售人员销售电脑----'
def sale = new Sale(mediator)
sale.sellIBMComputer(1)

println '----库房人员清理库房----'
def stock = new Stock(mediator)
stock.clearStock()